﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.ObjectModel;
using PJ.Data;

namespace PJ.Business
{
    public interface IEntityFragmentService : IBusinessObjectService, IDependentObjectService
    {
        /// <summary>
        /// Gets the parent fragments list
        /// </summary>
        /// <param name="parentId">The parent Entity id</param>
        /// <param name="mode">Fetch mode</param>
        /// <returns>The collection of fragment object global ids if found else <see langref="null"/>.</returns>
        /// <exception cref="ArgumentNullException">If <paramref name="parent"/> is <see langref="null"/> or empty.</exception>
        string[] GetFragments(string parentId, GetDataMode mode);

    }
    public interface IEntityFragmentService<OI> : IEntityFragmentService
        where OI : IEntityFragment
    {
    }
}
